<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>登录页面</title>
    <link rel="icon" href="../../favicon.ico" type="image/ico">
    <meta name="keywords" content="LightYear,光年,后台模板,后台管理系统,光年HTML模板">
    <meta name="description" content="LightYear是一个基于Bootstrap v3.3.7的后台管理系统的HTML模板。">
    <meta name="author" content="yinqi">
    <link href="../../css/bootstrap.min.css" rel="stylesheet">
    <link href="../../css/materialdesignicons.min.css" rel="stylesheet">
    <link href="../../css/style.min.css" rel="stylesheet">
    <style>
        body {
            background-color: #fff;
        }
        .lyear-login-box {
            position: relative;
            overflow-x: hidden;
            width: 100%;
            height: 100%;
            -webkit-transition: 0.5s;
            -o-transition: 0.5s;
            transition: 0.5s;
        }
        .lyear-login-left {
            width: 50%;
            top: 0;
            left: 0;
            bottom: 0;
            position: fixed;
            height: 100%;
            z-index: 555;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center center;
        }

        .btn-circle.btn-xl {
            width: 200px;
            height: 200px;
            padding: 10px 16px;
            font-size: 24px;
            line-height: 1.33;
            border-radius: 100px;
        }

        .lyear-overlay {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 10;
            background: rgba(0, 0, 0, 0.5);
        }
        .lyear-logo {
            margin-bottom: 50px;
        }
        .lyear-featured {
            z-index: 12;
            position: absolute;
            bottom: 0;
            padding: 30px;
            width: 100%;
        }
        .lyear-featured h4 {
            color: #fff;
            line-height: 32px;
        }
        .lyear-featured h4 small {
            color: #fff;
            display: block;
            text-align: right;
            margin-top: 15px;
        }
        .lyear-login-right {
            margin-left: 50%;
            position: relative;
            z-index: 999;
            padding: 100px;
            background-color: #fff;
        }
        @media screen and (max-width: 1024px) {
            .lyear-login-right {
                padding: 50px;
            }
        }
        @media screen and (max-width: 820px) {
            .lyear-login-left {
                width: 100%;
                position: relative;
                z-index: 999;
                height: 300px;
            }
            .lyear-login-right {
                margin-left: 0;
            }
        }
        @media screen and (max-width: 480px) {
            .lyear-login-right {
                padding: 50px;
            }
        }
        @media screen and (max-width: 320px) {
            .lyear-login-right {
                padding: 30px;
            }
        }
    </style>
</head>

<body>


<div class="lyear-login-left" style="background-image: url(../../images/login-bg-3.jpg)">
    <div class="lyear-overlay"></div>
    <div class="lyear-featured">
        <h4>我会一直在你身前<small> - ttb</small></h4>

    </div>
</div>

<div class="lyear-login-right" style="background: #002B36">


    <form action="${pageContext.request.contextPath}/user/login" method="post">
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" name="username" class="form-control" id="username" placeholder="请输入您的用户名">
        </div>

        <div class="form-group">
            <label for="password">密码</label>
            <input type="password"  name="password" class="form-control" id="password" placeholder="请输入您的密码">
        </div>

        <div class="form-group">
            <label for="captcha1">验证码</label>
            <div class="row">
                <div class="col-xs-9">
                    <input type="text" name="captcha" id="captcha1" class="form-control" placeholder="验证码">
                </div>
                <div class="col-xs-3">
                    <img src="${pageContext.request.contextPath}/checkCode" class="pull-right" id="captcha2" style="cursor: pointer;" onclick="this.src=this.src+'?d='+Math.random();" title="点击刷新" alt="captcha">
                </div>
            </div>
        </div>


        <div class="form-group">
            <button class="btn btn-block btn-primary" type="submit" id="login" >立即登录</button>
        </div>

    </form>


    <div style="text-align: center; margin: 75px 41px 8px 41px">
        <button type="button" class="btn btn-default btn-circle btn-xl"><i class="glyphicon glyphicon-ok"></i><a
                href="login">跳转登录</a></button>
    </div>
    <footer class="text-right navbar-fixed-bottom">
        <p class="m-b-0">Copyright © 2021 <a href="#">ttb</a>. All right reserved</p>
    </footer>
</div>


<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/layer/layer.js"></script>
<script>
<%--    <c:if test="${info} != null">--%>
    layer.ready(function(){
        layer.open({
            type: 1,
            area : ["500px", "75px"],
            closeBtn: 0, //不显示关闭按钮
            title : false,
            anim: 6,
            shadeClose: true, //开启遮罩关闭
            time: 2000,
            content:  '<div style="margin: auto; width: 100%; height: 100%" class="alert alert-success" role="alert"><h3 style="text-align: center">请您进行注册</h3></div>'
        });
    });
<%--    </c:if>--%>
</script>
</body>
</html>